using System;
using System.Collections.Generic;

namespace SBPweb.Forge.Modules.Modularity
{
    /// <summary>
    /// ServiceDictionary. The name of the service have to be unique.
    /// </summary>
    public class ServiceDictionary : TypeDictionary
	{

		#region Constructor logic

		/// <summary>
		/// Initializes a new ServiceDictionary instance
		/// </summary>
		public ServiceDictionary()
			: base()
		{
		}

		#endregion

		#region Public methods

		/// <summary>
        /// Adds a new IService to the Dictionary
        /// </summary>
        /// <param name="type">Type of the service</param>
        /// <param name="value">The IService instance</param>
		public void Add(Type type, IService value)
        {
            base.Add(type.FullName, type, value);
		}

		#endregion 

	}

}